package com.zhxy.manager.dao;

import com.zhxy.manager.dto.TeacherTjDto;
import com.zhxy.manager.entity.Teacher;
import com.zhxy.manager.excel.TeacherExcel;

import java.util.List;

public interface TeacherDao {
    //增加
    int add(Teacher teacher);
    //查询全部
    List<Teacher> selectAll();
    //删除
    int del(int id);
    //修改
    int update(Teacher teacher);
    //查询，带条件 动态sql
    List<Teacher> selectWhere(String name);
    //批量删除
    int delBatch(int[] ids);
    //批量新增数据
    int addBatch(List<TeacherExcel> teacher);
    //图标查询
    List<TeacherTjDto> queryTj();
}
